package org.opportunity.wishlist.travelwish.util;

import java.util.HashMap;
import java.util.Map;

public class Header {
    private String choice;
    private Map<String, String> title = new HashMap<String, String>();
    private Map<String, String[]> cssFiles = new HashMap<String, String[]>();
    private Map<String, String[]> jsFiles = new HashMap<String, String[]>();
    private String[] cssDefault;

    public Header() {
	title.put("index", "Home Page");
	title.put("ideas", "Some Ideas");

	cssDefault = new String[] { "css/common.css" };

	// cssFiles.put(key, new String[]{ /* add CSS files */ });
	// jsFiles.put(key, new String[]{ /* add JavaScript files */ });
    }

    public void setChoice(String choice) {
        this.choice = choice;
    }

    public String getTitle() {
        return title.get(choice);
    }

    public String[] getCssFiles() {
	String[] files = cssFiles.get(choice);
	if(files == null) {
	    return cssDefault;
	    
	} else {
	    return files;
	    
	}
	
    }

    public String[] getJsFiles() {
        return jsFiles.get(choice);
        
    }
    
    

}
